package com.cskaoyan.service;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.PermissionsPostBO;
import com.cskaoyan.bean.bo.RoleBO;
import com.cskaoyan.bean.bo.RoleCreateBO;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.RolePO;
import com.cskaoyan.bean.vo.TVO;

import java.util.List;

public interface RoleService {
    TVO<RolePO> queryAllRole(BaseParam baseParam,String name);

    BaseRespVo update(RoleBO roleBO);

    BaseRespVo delete(RoleBO roleBO);

    BaseRespVo create(RoleCreateBO createBO);

    BaseRespVo permissions(Integer roleId);

    BaseRespVo permissionsPost(PermissionsPostBO permissionsPostBO);

    List<String> selectPermissionByRoleId(Integer roleId);

}
